/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

/**
 *
 * @author 
 */
public class ClassUtil {

    static ClassLoader getClassLoader() {
        ClassLoader classLoader=null;
        classLoader=Thread.currentThread().getContextClassLoader();
        if(classLoader==null){
            classLoader=ClassLoader.getSystemClassLoader();
        }
        return classLoader;
    }

    static boolean isClassExtendedBy(Class class1, Class classExtendida) {
        boolean bisSuperClase;
        Class superclase = class1.getSuperclass();
        if (superclase != null) {
            return true;
        } else {
            return false;
        }
    }
    

    
}
